#llmAnswer.py
from sqlalchemy import Column, ForeignKey, String, Integer
from app.models.base import Base
from flask_sqlalchemy import SQLAlchemy
#from app.models.assignqV import AssignqVariation
db = SQLAlchemy()
class LLMAnswer(Base):
    LLM_Name = Column(String(20), nullable=False)
    LLM_Answer = Column(String(1000), nullable=False, comment='Img start with "!LOC:"')
    Score = Column(Integer, nullable=False)
    Comments = Column(String(1000), nullable=False)
    Q_id = Column(Integer, nullable=False)
    A_id = Column(Integer, primary_key=True)
    def __init__(self, LLM_Name, LLM_Answer, Score, Comments, Q_id, A_id):
        super(LLMAnswer, self).__init__()
        self.LLM_Name = LLM_Name
        self.LLM_Answer = LLM_Answer
        self.Score = Score
        self.Comments = Comments
        self.Q_id = Q_id
        self.A_id = A_id
        